<%- include('./common/header') %>
<h1>笔记列表</h1>
<a href="/add">添加笔记</a>
<table class="table table-hover">
    <% for(let i =0;i<data.length;i++){ %>
    <tr>
        <td><%= data[i].title %></td>
        <td><a href="/edit/<%=data[i]._id%>">编辑</a> <a href="/delete/<%=data[i]._id%>">删除</a></td>
    </tr>
    <% } %>
</table>
<%- include('./common/footer')%>